-- GENERATED SPELL FOR [Quillfang Ravager] --


function spell0_16934(pUnit, Event) --@Corrosive Mist,n/a--
pUnit:FullCastSpellOnTarget(33968,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16934', 21000, 1)
end

function spell1_16934(pUnit, Event) --@Ravage,n/a--
pUnit:FullCastSpellOnTarget(33781,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16934', 2339, 1)
end

function Sorts_16934(pUnit, Event)
local choix_sorts_16934 = math.random(0, 1)
if choix_sorts_16934 == 0 then
pUnit:RegisterEvent('spell0_16934', 1, 1)
end
if choix_sorts_16934 == 1 then
pUnit:RegisterEvent('spell1_16934', 1, 1)
end
end

function mob16934_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16934', math.random(1500, 3000), 1)
end

function mob16934_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16934_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16934_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16934, 1, 'mob16934_Action')
RegisterUnitEvent(16934, 2, 'mob16934_Leave')
RegisterUnitEvent(16934, 3, 'mob16934_Kill')
RegisterUnitEvent(16934, 4, 'mob16934_Die')
